package xiyuan.view.data;

import java.util.LinkedList;
import java.util.List;

public class ViewInformation {
	private List<WeiboUser> users;
	private String searchTag;
	private String[] addiTags;
	public ViewInformation clone(){
		ViewInformation newvi = new ViewInformation();
		newvi.setSearchTag(this.getSearchTag());
		newvi.setAddiTags(this.getAddiTags().clone());
		List<WeiboUser> userlist = this.getUsers(),
			newlist = new LinkedList<WeiboUser>();
		for (WeiboUser user:userlist){
			newlist.add(user.clone());
		}
		newvi.setUsers(newlist);
		return newvi;
	}
	/**
	 * @param users the users to set
	 */
	public void setUsers(List<WeiboUser> users) {
		this.users = users;
	}
	/**
	 * @return the users
	 */
	public List<WeiboUser> getUsers() {
		return users;
	}
	/**
	 * @param searchTag the searchTag to set
	 */
	public void setSearchTag(String searchTag) {
		this.searchTag = searchTag;
	}
	/**
	 * @return the searchTag
	 */
	public String getSearchTag() {
		return searchTag;
	}
	/**
	 * @param addiTags the addiTags to set
	 */
	public void setAddiTags(String[] addiTags) {
		this.addiTags = addiTags;
	}
	/**
	 * @return the addiTags
	 */
	public String[] getAddiTags() {
		return addiTags;
	}
}
